using Message.Base;

namespace NetGameRunning
{
    public class ChatMessage : BaseMessage<GlobalChatData>
    {
        public ChatMessage(int messageId) : base(messageId)
        {
        }

        public override void WriteIn(byte[] buffer, int beginIndex, int length)
        {
            Data = GlobalChatData.Parser.ParseFrom(buffer, beginIndex, length);
        }

        public override void Reset()
        {
        }


    }
}